package com.ruoyi.activeinfo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.activeinfo.mapper.ActiveInfoMapper;
import com.ruoyi.activeinfo.domain.ActiveInfo;
import com.ruoyi.activeinfo.service.IActiveInfoService;

/**
 * 社区活动Service业务层处理
 * 
 * @author hct
 * @date 2022-02-16
 */
@Service
public class ActiveInfoServiceImpl implements IActiveInfoService 
{
    @Autowired
    private ActiveInfoMapper activeInfoMapper;

    /**
     * 查询社区活动
     * 
     * @param id 社区活动主键
     * @return 社区活动
     */
    @Override
    public ActiveInfo selectActiveInfoById(Long id)
    {
        return activeInfoMapper.selectActiveInfoById(id);
    }

    /**
     * 查询社区活动列表
     * 
     * @param activeInfo 社区活动
     * @return 社区活动
     */
    @Override
    public List<ActiveInfo> selectActiveInfoList(ActiveInfo activeInfo)
    {
        return activeInfoMapper.selectActiveInfoList(activeInfo);
    }

    /**
     * 新增社区活动
     * 
     * @param activeInfo 社区活动
     * @return 结果
     */
    @Override
    public int insertActiveInfo(ActiveInfo activeInfo)
    {
        return activeInfoMapper.insertActiveInfo(activeInfo);
    }

    /**
     * 修改社区活动
     * 
     * @param activeInfo 社区活动
     * @return 结果
     */
    @Override
    public int updateActiveInfo(ActiveInfo activeInfo)
    {
        return activeInfoMapper.updateActiveInfo(activeInfo);
    }

    /**
     * 批量删除社区活动
     * 
     * @param ids 需要删除的社区活动主键
     * @return 结果
     */
    @Override
    public int deleteActiveInfoByIds(Long[] ids)
    {
        return activeInfoMapper.deleteActiveInfoByIds(ids);
    }

    /**
     * 删除社区活动信息
     * 
     * @param id 社区活动主键
     * @return 结果
     */
    @Override
    public int deleteActiveInfoById(Long id)
    {
        return activeInfoMapper.deleteActiveInfoById(id);
    }
}
